import request from '@/utils/request'

// 查询公寓图片管理列表
export function listAptromview(query) {
  return request({
    url: '/aptromview/aptromview/list',
    method: 'get',
    params: query
  })
}

// 查询公寓图片管理详细
export function getAptromview(apartmentIncludeRoomId) {
  return request({
    url: '/aptromview/aptromview/' + apartmentIncludeRoomId,
    method: 'get'
  })
}

// 新增公寓图片管理
export function addAptromview(data) {
  return request({
    url: '/aptromview/aptromview',
    method: 'post',
    data: data
  })
}

// 修改公寓图片管理
export function updateAptromview(data) {
  return request({
    url: '/aptromview/aptromview',
    method: 'put',
    data: data
  })
}

// 删除公寓图片管理
export function delAptromview(apartmentIncludeRoomId) {
  return request({
    url: '/aptromview/aptromview/' + apartmentIncludeRoomId,
    method: 'delete'
  })
}
